package com.sanjiahantang.youjiarole.module.store.models.impl;

import android.content.Context;


import com.sanjiahantang.youjiarole.base.CallBack;
import com.sanjiahantang.youjiarole.module.store.beans.StoreBean;
import com.sanjiahantang.youjiarole.module.store.models.IStoreModel;

/**
 * Created by zy on 2017/9/20.
 */

public class StoreModel implements IStoreModel {
    @Override
    public void loadStoreList(final Context context, final CallBack<StoreBean> callBack) {
        /*if(ConfigValue.isDebug){
            new Handler().postDelayed(new Runnable() {
                public void run() {
                    StoreBean model = new StoreBean();
                    model.setCode(200);
                    model.setMessage("成功");
                    List<StoreBean.Data> data = new ArrayList<StoreBean.Data>();
                    for (int i = 0;i<10;i++){
                        StoreBean.Data item = new StoreBean.Data();
                        item.setAddress("地址地址地址地址地址地址地址" + i);
                        item.setImg("data/shoplogo/1503997768136791366.jpg");
                        item.setDistance("1000");
                        item.setTitle("标题标题标题标题标题标题");
                        data.add(item);
                    }
                    model.setData(data);
                    callBack.onSuccess(model,context);
                }
            }, 1000);
            return;
        }*/
    }
}
